package com.igeekhome.microservicecommon.feign;

import com.igeekhome.microservicecommon.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "MICROSERVICE-PROVIDER-USER",fallback = UserFeignServiceFallBack.class)
public interface UserFeignService {

    @RequestMapping("/user/get/{id}")
    User get(@PathVariable("id") Long id);
}
